/* Request and Response */
 
var http = require('http');
 
http.createServer( 
    function(request, response){
	    //console
	    console.log('********************');
	    //console.log(request);
	    console.log(request.url);
	    console.log(request.headers['user-agent']);
	    console.log('********************');
	    // hello world 
	    response.writeHead(200, {'Content-Type': 'text/plain'});
	    response.end('Hello world!');
	}
).listen(888, "127.0.0.1");
 
console.log('Server start at 888');